how to solve question simple bar diagram